.class public Lrexsee/core/style/PaintSheet;
.super Ljava/lang/Object;
.source "PaintSheet.java"


# instance fields
.field public alpha:Ljava/lang/String;

.field public antialias:Ljava/lang/String;

.field public color:Ljava/lang/String;

.field public dither:Ljava/lang/String;

.field public filterbitmap:Ljava/lang/String;

.field public font_size:Ljava/lang/String;

.field public font_weight:Ljava/lang/String;

.field public format:Ljava/lang/String;

.field public mode:Ljava/lang/String;

.field public op_color:Ljava/lang/String;

.field public stroke_cap:Ljava/lang/String;

.field public stroke_join:Ljava/lang/String;

.field public stroke_join_meter:Ljava/lang/String;

.field public stroke_style:Ljava/lang/String;

.field public stroke_width:Ljava/lang/String;

.field public text_align:Ljava/lang/String;

.field public text_decoration:Ljava/lang/String;

.field public text_linear:Ljava/lang/String;

.field public text_scalex:Ljava/lang/String;

.field public text_shadow_color:Ljava/lang/String;

.field public text_shadow_dx:Ljava/lang/String;

.field public text_shadow_dy:Ljava/lang/String;

.field public text_shadow_radius:Ljava/lang/String;

.field public text_skewx:Ljava/lang/String;

.field public text_subpixel:Ljava/lang/String;

.field public tolerance:Ljava/lang/String;


# direct methods
.method public constructor <init>(Ljava/lang/String;)V
    .locals 11
    .param p1, "style"    # Ljava/lang/String;

    .prologue
    const/4 v10, 0x0

    const-string v9, ":"

    const-string v8, "1"

    const-string v7, "false"

    const-string v6, "0"

    .line 88
    invoke-direct {p0}, Ljava/lang/Object;-><init>()V

    .line 15
    const-string v5, "none"

    iput-object v5, p0, Lrexsee/core/style/PaintSheet;->mode:Ljava/lang/String;

    .line 17
    const-string v5, "1"

    iput-object v8, p0, Lrexsee/core/style/PaintSheet;->alpha:Ljava/lang/String;

    .line 19
    const-string v5, "false"

    iput-object v7, p0, Lrexsee/core/style/PaintSheet;->antialias:Ljava/lang/String;

    .line 20
    const-string v5, "false"

    iput-object v7, p0, Lrexsee/core/style/PaintSheet;->dither:Ljava/lang/String;

    .line 21
    const-string v5, "false"

    iput-object v7, p0, Lrexsee/core/style/PaintSheet;->filterbitmap:Ljava/lang/String;

    .line 23
    const-string v5, "0"

    iput-object v6, p0, Lrexsee/core/style/PaintSheet;->tolerance:Ljava/lang/String;

    .line 24
    const-string v5, "#888888"

    iput-object v5, p0, Lrexsee/core/style/PaintSheet;->op_color:Ljava/lang/String;

    .line 26
    const-string v5, "#FFFFFF"

    iput-object v5, p0, Lrexsee/core/style/PaintSheet;->color:Ljava/lang/String;

    .line 27
    const-string v5, "14"

    iput-object v5, p0, Lrexsee/core/style/PaintSheet;->font_size:Ljava/lang/String;

    .line 28
    const-string v5, "normal"

    iput-object v5, p0, Lrexsee/core/style/PaintSheet;->font_weight:Ljava/lang/String;

    .line 29
    const-string v5, "normal"

    iput-object v5, p0, Lrexsee/core/style/PaintSheet;->text_decoration:Ljava/lang/String;

    .line 30
    const-string v5, "left"

    iput-object v5, p0, Lrexsee/core/style/PaintSheet;->text_align:Ljava/lang/String;

    .line 31
    const-string v5, "0"

    iput-object v6, p0, Lrexsee/core/style/PaintSheet;->text_shadow_radius:Ljava/lang/String;

    .line 32
    const-string v5, "0"

    iput-object v6, p0, Lrexsee/core/style/PaintSheet;->text_shadow_dx:Ljava/lang/String;

    .line 33
    const-string v5, "0"

    iput-object v6, p0, Lrexsee/core/style/PaintSheet;->text_shadow_dy:Ljava/lang/String;

    .line 34
    const-string v5, "#000000"

    iput-object v5, p0, Lrexsee/core/style/PaintSheet;->text_shadow_color:Ljava/lang/String;

    .line 35
    const-string v5, "1"

    iput-object v8, p0, Lrexsee/core/style/PaintSheet;->text_scalex:Ljava/lang/String;

    .line 36
    const-string v5, "0"

    iput-object v6, p0, Lrexsee/core/style/PaintSheet;->text_skewx:Ljava/lang/String;

    .line 37
    const-string v5, "false"

    iput-object v7, p0, Lrexsee/core/style/PaintSheet;->text_linear:Ljava/lang/String;

    .line 38
    const-string v5, "false"

    iput-object v7, p0, Lrexsee/core/style/PaintSheet;->text_subpixel:Ljava/lang/String;

    .line 40
    const-string v5, "fillandstroke"

    iput-object v5, p0, Lrexsee/core/style/PaintSheet;->format:Ljava/lang/String;

    .line 41
    const-string v5, "1"

    iput-object v8, p0, Lrexsee/core/style/PaintSheet;->stroke_width:Ljava/lang/String;

    .line 42
    const-string v5, "solid"

    iput-object v5, p0, Lrexsee/core/style/PaintSheet;->stroke_style:Ljava/lang/String;

    .line 43
    const-string v5, "butt"

    iput-object v5, p0, Lrexsee/core/style/PaintSheet;->stroke_cap:Ljava/lang/String;

    .line 44
    const-string v5, "bevel"

    iput-object v5, p0, Lrexsee/core/style/PaintSheet;->stroke_join:Ljava/lang/String;

    .line 45
    const-string v5, "0"

    iput-object v6, p0, Lrexsee/core/style/PaintSheet;->stroke_join_meter:Ljava/lang/String;

    .line 89
    const-string v5, ";"

    invoke-virtual {p1, v5}, Ljava/lang/String;->split(Ljava/lang/String;)[Ljava/lang/String;

    move-result-object v0

    .line 90
    .local v0, "argus":[Ljava/lang/String;
    const/4 v1, 0x0

    .local v1, "i":I
    :goto_0
    array-length v5, v0

    if-lt v1, v5, :cond_0

    .line 108
    return-void

    .line 91
    :cond_0
    aget-object v5, v0, v1

    const-string v6, ":"

    invoke-virtual {v5, v9}, Ljava/lang/String;->indexOf(Ljava/lang/String;)I

    move-result v5

    if-gtz v5, :cond_2

    .line 90
    :cond_1
    :goto_1
    add-int/lit8 v1, v1, 0x1

    goto :goto_0

    .line 92
    :cond_2
    aget-object v5, v0, v1

    aget-object v6, v0, v1

    const-string v7, ":"

    invoke-virtual {v6, v9}, Ljava/lang/String;->indexOf(Ljava/lang/String;)I

    move-result v6

    invoke-virtual {v5, v10, v6}, Ljava/lang/String;->substring(II)Ljava/lang/String;

    move-result-object v5

    invoke-virtual {v5}, Ljava/lang/String;->trim()Ljava/lang/String;

    move-result-object v5

    invoke-virtual {v5}, Ljava/lang/String;->toLowerCase()Ljava/lang/String;

    move-result-object v5

    const-string v6, "\\-"

    const-string v7, "\\_"

    invoke-virtual {v5, v6, v7}, Ljava/lang/String;->replaceAll(Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String;

    move-result-object v2

    .line 93
    .local v2, "key":Ljava/lang/String;
    aget-object v5, v0, v1

    aget-object v6, v0, v1

    const-string v7, ":"

    invoke-virtual {v6, v9}, Ljava/lang/String;->indexOf(Ljava/lang/String;)I

    move-result v6

    add-int/lit8 v6, v6, 0x1

    invoke-virtual {v5, v6}, Ljava/lang/String;->substring(I)Ljava/lang/String;

    move-result-object v5

    invoke-virtual {v5}, Ljava/lang/String;->trim()Ljava/lang/String;

    move-result-object v4

    .line 94
    .local v4, "value":Ljava/lang/String;
    invoke-virtual {v4}, Ljava/lang/String;->length()I

    move-result v5

    if-eqz v5, :cond_1

    .line 95
    const-string v5, "text_shadow"

    invoke-virtual {v2, v5}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v5

    if-eqz v5, :cond_3

    .line 96
    const/4 v5, 0x4

    invoke-direct {p0, v4, v5}, Lrexsee/core/style/PaintSheet;->split(Ljava/lang/String;I)[Ljava/lang/String;

    move-result-object v3

    .line 97
    .local v3, "tmp":[Ljava/lang/String;
    aget-object v5, v3, v10

    iput-object v5, p0, Lrexsee/core/style/PaintSheet;->text_shadow_radius:Ljava/lang/String;

    .line 98
    const/4 v5, 0x1

    aget-object v5, v3, v5

    iput-object v5, p0, Lrexsee/core/style/PaintSheet;->text_shadow_dx:Ljava/lang/String;

    .line 99
    const/4 v5, 0x2

    aget-object v5, v3, v5

    iput-object v5, p0, Lrexsee/core/style/PaintSheet;->text_shadow_dy:Ljava/lang/String;

    .line 100
    const/4 v5, 0x3

    aget-object v5, v3, v5

    iput-object v5, p0, Lrexsee/core/style/PaintSheet;->text_shadow_color:Ljava/lang/String;

    goto :goto_1

    .line 103
    .end local v3    # "tmp":[Ljava/lang/String;
    :cond_3
    :try_start_0
    invoke-virtual {p0}, Ljava/lang/Object;->getClass()Ljava/lang/Class;

    move-result-object v5

    invoke-virtual {v5, v2}, Ljava/lang/Class;->getField(Ljava/lang/String;)Ljava/lang/reflect/Field;

    move-result-object v5

    invoke-virtual {v5, p0, v4}, Ljava/lang/reflect/Field;->set(Ljava/lang/Object;Ljava/lang/Object;)V
    :try_end_0
    .catch Ljava/lang/Exception; {:try_start_0 .. :try_end_0} :catch_0

    goto :goto_1

    .line 104
    :catch_0
    move-exception v5

    goto :goto_1
.end method

.method private getPathEffect()Landroid/graphics/PathEffect;
    .locals 9

    .prologue
    const/4 v8, 0x3

    const/4 v7, 0x2

    const/4 v6, 0x1

    const/4 v5, 0x0

    const/4 v4, 0x0

    .line 68
    iget-object v1, p0, Lrexsee/core/style/PaintSheet;->stroke_width:Ljava/lang/String;

    const/high16 v2, 0x3f800000    # 1.0f

    invoke-static {v1, v2}, Lrexsee/core/utilities/Utilities;->getFloat(Ljava/lang/String;F)F

    move-result v0

    .line 69
    .local v0, "w":F
    iget-object v1, p0, Lrexsee/core/style/PaintSheet;->stroke_style:Ljava/lang/String;

    const-string v2, "dot"

    invoke-virtual {v1, v2}, Ljava/lang/String;->equalsIgnoreCase(Ljava/lang/String;)Z

    move-result v1

    if-eqz v1, :cond_0

    .line 70
    new-instance v1, Landroid/graphics/DashPathEffect;

    new-array v2, v7, [F

    aput v0, v2, v5

    aput v0, v2, v6

    invoke-direct {v1, v2, v4}, Landroid/graphics/DashPathEffect;-><init>([FF)V

    .line 84
    :goto_0
    return-object v1

    .line 71
    :cond_0
    iget-object v1, p0, Lrexsee/core/style/PaintSheet;->stroke_style:Ljava/lang/String;

    const-string v2, "shortdash"

    invoke-virtual {v1, v2}, Ljava/lang/String;->equalsIgnoreCase(Ljava/lang/String;)Z

    move-result v1

    if-eqz v1, :cond_1

    .line 72
    new-instance v1, Landroid/graphics/DashPathEffect;

    new-array v2, v7, [F

    const/high16 v3, 0x40000000    # 2.0f

    mul-float/2addr v3, v0

    aput v3, v2, v5

    aput v0, v2, v6

    invoke-direct {v1, v2, v4}, Landroid/graphics/DashPathEffect;-><init>([FF)V

    goto :goto_0

    .line 73
    :cond_1
    iget-object v1, p0, Lrexsee/core/style/PaintSheet;->stroke_style:Ljava/lang/String;

    const-string v2, "dash"

    invoke-virtual {v1, v2}, Ljava/lang/String;->equalsIgnoreCase(Ljava/lang/String;)Z

    move-result v1

    if-eqz v1, :cond_2

    .line 74
    new-instance v1, Landroid/graphics/DashPathEffect;

    new-array v2, v7, [F

    const/high16 v3, 0x40800000    # 4.0f

    mul-float/2addr v3, v0

    aput v3, v2, v5

    aput v0, v2, v6

    invoke-direct {v1, v2, v4}, Landroid/graphics/DashPathEffect;-><init>([FF)V

    goto :goto_0

    .line 75
    :cond_2
    iget-object v1, p0, Lrexsee/core/style/PaintSheet;->stroke_style:Ljava/lang/String;

    const-string v2, "longdash"

    invoke-virtual {v1, v2}, Ljava/lang/String;->equalsIgnoreCase(Ljava/lang/String;)Z

    move-result v1

    if-eqz v1, :cond_3

    .line 76
    new-instance v1, Landroid/graphics/DashPathEffect;

    new-array v2, v7, [F

    const/high16 v3, 0x41000000    # 8.0f

    mul-float/2addr v3, v0

    aput v3, v2, v5

    aput v0, v2, v6

    invoke-direct {v1, v2, v4}, Landroid/graphics/DashPathEffect;-><init>([FF)V

    goto :goto_0

    .line 77
    :cond_3
    iget-object v1, p0, Lrexsee/core/style/PaintSheet;->stroke_style:Ljava/lang/String;

    const-string v2, "dotshortdash"

    invoke-virtual {v1, v2}, Ljava/lang/String;->equalsIgnoreCase(Ljava/lang/String;)Z

    move-result v1

    if-eqz v1, :cond_4

    .line 78
    new-instance v1, Landroid/graphics/DashPathEffect;

    const/4 v2, 0x4

    new-array v2, v2, [F

    const/high16 v3, 0x40000000    # 2.0f

    mul-float/2addr v3, v0

    aput v3, v2, v5

    aput v0, v2, v6

    aput v0, v2, v7

    aput v0, v2, v8

    invoke-direct {v1, v2, v4}, Landroid/graphics/DashPathEffect;-><init>([FF)V

    goto :goto_0

    .line 79
    :cond_4
    iget-object v1, p0, Lrexsee/core/style/PaintSheet;->stroke_style:Ljava/lang/String;

    const-string v2, "dotdash"

    invoke-virtual {v1, v2}, Ljava/lang/String;->equalsIgnoreCase(Ljava/lang/String;)Z

    move-result v1

    if-eqz v1, :cond_5

    .line 80
    new-instance v1, Landroid/graphics/DashPathEffect;

    const/4 v2, 0x4

    new-array v2, v2, [F

    const/high16 v3, 0x40800000    # 4.0f

    mul-float/2addr v3, v0

    aput v3, v2, v5

    aput v0, v2, v6

    aput v0, v2, v7

    aput v0, v2, v8

    invoke-direct {v1, v2, v4}, Landroid/graphics/DashPathEffect;-><init>([FF)V

    goto/16 :goto_0

    .line 81
    :cond_5
    iget-object v1, p0, Lrexsee/core/style/PaintSheet;->stroke_style:Ljava/lang/String;

    const-string v2, "dotlongdash"

    invoke-virtual {v1, v2}, Ljava/lang/String;->equalsIgnoreCase(Ljava/lang/String;)Z

    move-result v1

    if-eqz v1, :cond_6

    .line 82
    new-instance v1, Landroid/graphics/DashPathEffect;

    const/4 v2, 0x4

    new-array v2, v2, [F

    const/high16 v3, 0x41000000    # 8.0f

    mul-float/2addr v3, v0

    aput v3, v2, v5

    aput v0, v2, v6

    aput v0, v2, v7

    aput v0, v2, v8

    invoke-direct {v1, v2, v4}, Landroid/graphics/DashPathEffect;-><init>([FF)V

    goto/16 :goto_0

    .line 84
    :cond_6
    const/4 v1, 0x0

    goto/16 :goto_0
.end method

.method private getPorterDuffMode()Landroid/graphics/PorterDuff$Mode;
    .locals 3

    .prologue
    .line 61
    :try_start_0
    iget-object v2, p0, Lrexsee/core/style/PaintSheet;->mode:Ljava/lang/String;

    invoke-static {v2}, Landroid/graphics/PorterDuff$Mode;->valueOf(Ljava/lang/String;)Landroid/graphics/PorterDuff$Mode;

    move-result-object v1

    .line 62
    .local v1, "m":Landroid/graphics/PorterDuff$Mode;
    if-nez v1, :cond_0

    sget-object v2, Landroid/graphics/PorterDuff$Mode;->SRC:Landroid/graphics/PorterDuff$Mode;
    :try_end_0
    .catch Ljava/lang/Exception; {:try_start_0 .. :try_end_0} :catch_0

    .line 64
    .end local v1    # "m":Landroid/graphics/PorterDuff$Mode;
    :goto_0
    return-object v2

    .restart local v1    # "m":Landroid/graphics/PorterDuff$Mode;
    :cond_0
    move-object v2, v1

    .line 62
    goto :goto_0

    .line 63
    .end local v1    # "m":Landroid/graphics/PorterDuff$Mode;
    :catch_0
    move-exception v2

    move-object v0, v2

    .line 64
    .local v0, "e":Ljava/lang/Exception;
    sget-object v2, Landroid/graphics/PorterDuff$Mode;->SRC:Landroid/graphics/PorterDuff$Mode;

    goto :goto_0
.end method

.method private split(Ljava/lang/String;I)[Ljava/lang/String;
    .locals 5
    .param p1, "value"    # Ljava/lang/String;
    .param p2, "n"    # I

    .prologue
    const/4 v4, 0x0

    .line 48
    if-gtz p2, :cond_0

    const/4 v3, 0x0

    .line 56
    :goto_0
    return-object v3

    .line 49
    :cond_0
    new-array v1, p2, [Ljava/lang/String;

    .line 50
    .local v1, "rtn":[Ljava/lang/String;
    const-string v3, "\\ "

    invoke-virtual {p1, v3}, Ljava/lang/String;->split(Ljava/lang/String;)[Ljava/lang/String;

    move-result-object v2

    .line 51
    .local v2, "v":[Ljava/lang/String;
    aget-object v3, v2, v4

    aput-object v3, v1, v4

    .line 52
    const/4 v0, 0x1

    .local v0, "i":I
    :goto_1
    if-lt v0, p2, :cond_1

    move-object v3, v1

    .line 56
    goto :goto_0

    .line 53
    :cond_1
    array-length v3, v2

    if-le v3, v0, :cond_2

    aget-object v3, v2, v0

    aput-object v3, v1, v0

    .line 52
    :goto_2
    add-int/lit8 v0, v0, 0x1

    goto :goto_1

    .line 54
    :cond_2
    const/4 v3, 0x1

    sub-int v3, v0, v3

    aget-object v3, v1, v3

    aput-object v3, v1, v0

    goto :goto_2
.end method


# virtual methods
.method public getPaint()Landroid/graphics/Paint;
    .locals 15

    .prologue
    const/4 v14, 0x1

    const/4 v13, 0x0

    const/high16 v12, 0x3f800000    # 1.0f

    const/4 v11, 0x0

    const-string v10, "true"

    .line 122
    new-instance v4, Landroid/graphics/Paint;

    invoke-direct {v4}, Landroid/graphics/Paint;-><init>()V

    .line 123
    .local v4, "paint":Landroid/graphics/Paint;
    iget-object v8, p0, Lrexsee/core/style/PaintSheet;->antialias:Ljava/lang/String;

    const-string v9, "true"

    invoke-virtual {v8, v10}, Ljava/lang/String;->equalsIgnoreCase(Ljava/lang/String;)Z

    move-result v8

    invoke-virtual {v4, v8}, Landroid/graphics/Paint;->setAntiAlias(Z)V

    .line 124
    iget-object v8, p0, Lrexsee/core/style/PaintSheet;->dither:Ljava/lang/String;

    const-string v9, "true"

    invoke-virtual {v8, v10}, Ljava/lang/String;->equalsIgnoreCase(Ljava/lang/String;)Z

    move-result v8

    invoke-virtual {v4, v8}, Landroid/graphics/Paint;->setDither(Z)V

    .line 125
    iget-object v8, p0, Lrexsee/core/style/PaintSheet;->filterbitmap:Ljava/lang/String;

    const-string v9, "true"

    invoke-virtual {v8, v10}, Ljava/lang/String;->equalsIgnoreCase(Ljava/lang/String;)Z

    move-result v8

    invoke-virtual {v4, v8}, Landroid/graphics/Paint;->setFilterBitmap(Z)V

    .line 126
    iget-object v8, p0, Lrexsee/core/style/PaintSheet;->text_linear:Ljava/lang/String;

    const-string v9, "true"

    invoke-virtual {v8, v10}, Ljava/lang/String;->equalsIgnoreCase(Ljava/lang/String;)Z

    move-result v8

    invoke-virtual {v4, v8}, Landroid/graphics/Paint;->setLinearText(Z)V

    .line 127
    iget-object v8, p0, Lrexsee/core/style/PaintSheet;->text_subpixel:Ljava/lang/String;

    const-string v9, "true"

    invoke-virtual {v8, v10}, Ljava/lang/String;->equalsIgnoreCase(Ljava/lang/String;)Z

    move-result v8

    invoke-virtual {v4, v8}, Landroid/graphics/Paint;->setLinearText(Z)V

    .line 128
    iget-object v8, p0, Lrexsee/core/style/PaintSheet;->color:Ljava/lang/String;

    invoke-static {v8}, Lrexsee/core/style/RexseeDrawable;->getIntColor(Ljava/lang/String;)I

    move-result v8

    invoke-virtual {v4, v8}, Landroid/graphics/Paint;->setColor(I)V

    .line 129
    iget-object v8, p0, Lrexsee/core/style/PaintSheet;->font_size:Ljava/lang/String;

    invoke-virtual {v8}, Ljava/lang/String;->toLowerCase()Ljava/lang/String;

    move-result-object v8

    const-string v9, "px"

    const-string v10, ""

    invoke-virtual {v8, v9, v10}, Ljava/lang/String;->replaceAll(Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String;

    move-result-object v8

    const/16 v9, 0x18

    invoke-static {v8, v9}, Lrexsee/core/utilities/Utilities;->getInt(Ljava/lang/String;I)I

    move-result v8

    int-to-float v8, v8

    invoke-virtual {v4, v8}, Landroid/graphics/Paint;->setTextSize(F)V

    .line 130
    iget-object v8, p0, Lrexsee/core/style/PaintSheet;->font_weight:Ljava/lang/String;

    const-string v9, "bold"

    invoke-virtual {v8, v9}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v8

    invoke-virtual {v4, v8}, Landroid/graphics/Paint;->setFakeBoldText(Z)V

    .line 131
    iget-object v8, p0, Lrexsee/core/style/PaintSheet;->text_scalex:Ljava/lang/String;

    invoke-static {v8, v12}, Lrexsee/core/utilities/Utilities;->getFloat(Ljava/lang/String;F)F

    move-result v8

    invoke-virtual {v4, v8}, Landroid/graphics/Paint;->setTextScaleX(F)V

    .line 132
    iget-object v8, p0, Lrexsee/core/style/PaintSheet;->text_skewx:Ljava/lang/String;

    invoke-static {v8, v11}, Lrexsee/core/utilities/Utilities;->getFloat(Ljava/lang/String;F)F

    move-result v8

    invoke-virtual {v4, v8}, Landroid/graphics/Paint;->setTextSkewX(F)V

    .line 133
    iget-object v8, p0, Lrexsee/core/style/PaintSheet;->text_shadow_radius:Ljava/lang/String;

    invoke-static {v8, v11}, Lrexsee/core/utilities/Utilities;->getFloat(Ljava/lang/String;F)F

    move-result v6

    .line 134
    .local v6, "radius":F
    iget-object v8, p0, Lrexsee/core/style/PaintSheet;->text_shadow_dx:Ljava/lang/String;

    invoke-static {v8, v11}, Lrexsee/core/utilities/Utilities;->getFloat(Ljava/lang/String;F)F

    move-result v2

    .line 135
    .local v2, "dx":F
    iget-object v8, p0, Lrexsee/core/style/PaintSheet;->text_shadow_dy:Ljava/lang/String;

    invoke-static {v8, v11}, Lrexsee/core/utilities/Utilities;->getFloat(Ljava/lang/String;F)F

    move-result v3

    .line 136
    .local v3, "dy":F
    iget-object v8, p0, Lrexsee/core/style/PaintSheet;->text_shadow_color:Ljava/lang/String;

    invoke-static {v8}, Lrexsee/core/style/RexseeDrawable;->getIntColor(Ljava/lang/String;)I

    move-result v1

    .line 137
    .local v1, "color":I
    invoke-virtual {v4, v6, v2, v3, v1}, Landroid/graphics/Paint;->setShadowLayer(FFFI)V

    .line 138
    iget-object v8, p0, Lrexsee/core/style/PaintSheet;->text_align:Ljava/lang/String;

    const-string v9, "right"

    invoke-virtual {v8, v9}, Ljava/lang/String;->equalsIgnoreCase(Ljava/lang/String;)Z

    move-result v8

    if-eqz v8, :cond_6

    .line 139
    sget-object v8, Landroid/graphics/Paint$Align;->RIGHT:Landroid/graphics/Paint$Align;

    invoke-virtual {v4, v8}, Landroid/graphics/Paint;->setTextAlign(Landroid/graphics/Paint$Align;)V

    .line 145
    :goto_0
    iget-object v8, p0, Lrexsee/core/style/PaintSheet;->text_decoration:Ljava/lang/String;

    const-string v9, "underline"

    invoke-virtual {v8, v9}, Ljava/lang/String;->equalsIgnoreCase(Ljava/lang/String;)Z

    move-result v8

    if-eqz v8, :cond_8

    .line 146
    invoke-virtual {v4, v14}, Landroid/graphics/Paint;->setUnderlineText(Z)V

    .line 151
    :cond_0
    :goto_1
    iget-object v8, p0, Lrexsee/core/style/PaintSheet;->alpha:Ljava/lang/String;

    invoke-static {v8, v11}, Lrexsee/core/utilities/Utilities;->getFloat(Ljava/lang/String;F)F

    move-result v0

    .line 152
    .local v0, "a":F
    cmpl-float v8, v0, v12

    if-lez v8, :cond_1

    const/high16 v0, 0x3f800000    # 1.0f

    .line 153
    :cond_1
    cmpg-float v8, v0, v11

    if-gez v8, :cond_2

    const/4 v0, 0x0

    .line 154
    :cond_2
    float-to-int v8, v0

    mul-int/lit16 v8, v8, 0xff

    invoke-virtual {v4, v8}, Landroid/graphics/Paint;->setAlpha(I)V

    .line 156
    iget-object v8, p0, Lrexsee/core/style/PaintSheet;->format:Ljava/lang/String;

    const-string v9, "stroke"

    invoke-virtual {v8, v9}, Ljava/lang/String;->equalsIgnoreCase(Ljava/lang/String;)Z

    move-result v8

    if-eqz v8, :cond_a

    sget-object v8, Landroid/graphics/Paint$Style;->STROKE:Landroid/graphics/Paint$Style;

    :goto_2
    invoke-virtual {v4, v8}, Landroid/graphics/Paint;->setStyle(Landroid/graphics/Paint$Style;)V

    .line 157
    iget-object v8, p0, Lrexsee/core/style/PaintSheet;->format:Ljava/lang/String;

    const-string v9, "fill"

    invoke-virtual {v8, v9}, Ljava/lang/String;->equalsIgnoreCase(Ljava/lang/String;)Z

    move-result v8

    if-nez v8, :cond_4

    .line 158
    iget-object v8, p0, Lrexsee/core/style/PaintSheet;->stroke_width:Ljava/lang/String;

    const/high16 v9, -0x40800000    # -1.0f

    invoke-static {v8, v9}, Lrexsee/core/utilities/Utilities;->getFloat(Ljava/lang/String;F)F

    move-result v7

    .line 159
    .local v7, "strokeWidth":F
    cmpl-float v8, v7, v11

    if-lez v8, :cond_3

    .line 160
    invoke-virtual {v4, v7}, Landroid/graphics/Paint;->setStrokeWidth(F)V

    .line 161
    invoke-direct {p0}, Lrexsee/core/style/PaintSheet;->getPathEffect()Landroid/graphics/PathEffect;

    move-result-object v5

    .line 162
    .local v5, "pathEffect":Landroid/graphics/PathEffect;
    if-eqz v5, :cond_3

    invoke-virtual {v4, v5}, Landroid/graphics/Paint;->setPathEffect(Landroid/graphics/PathEffect;)Landroid/graphics/PathEffect;

    .line 164
    .end local v5    # "pathEffect":Landroid/graphics/PathEffect;
    :cond_3
    iget-object v8, p0, Lrexsee/core/style/PaintSheet;->stroke_cap:Ljava/lang/String;

    const-string v9, "round"

    invoke-virtual {v8, v9}, Ljava/lang/String;->equalsIgnoreCase(Ljava/lang/String;)Z

    move-result v8

    if-eqz v8, :cond_c

    sget-object v8, Landroid/graphics/Paint$Cap;->ROUND:Landroid/graphics/Paint$Cap;

    :goto_3
    invoke-virtual {v4, v8}, Landroid/graphics/Paint;->setStrokeCap(Landroid/graphics/Paint$Cap;)V

    .line 165
    iget-object v8, p0, Lrexsee/core/style/PaintSheet;->stroke_join:Ljava/lang/String;

    const-string v9, "bevel"

    invoke-virtual {v8, v9}, Ljava/lang/String;->equalsIgnoreCase(Ljava/lang/String;)Z

    move-result v8

    if-eqz v8, :cond_e

    sget-object v8, Landroid/graphics/Paint$Join;->BEVEL:Landroid/graphics/Paint$Join;

    :goto_4
    invoke-virtual {v4, v8}, Landroid/graphics/Paint;->setStrokeJoin(Landroid/graphics/Paint$Join;)V

    .line 166
    iget-object v8, p0, Lrexsee/core/style/PaintSheet;->stroke_join_meter:Ljava/lang/String;

    invoke-static {v8, v11}, Lrexsee/core/utilities/Utilities;->getFloat(Ljava/lang/String;F)F

    move-result v8

    invoke-virtual {v4, v8}, Landroid/graphics/Paint;->setStrokeMiter(F)V

    .line 169
    .end local v7    # "strokeWidth":F
    :cond_4
    iget-object v8, p0, Lrexsee/core/style/PaintSheet;->mode:Ljava/lang/String;

    const-string v9, "none"

    invoke-virtual {v8, v9}, Ljava/lang/String;->equalsIgnoreCase(Ljava/lang/String;)Z

    move-result v8

    if-nez v8, :cond_5

    .line 170
    iget-object v8, p0, Lrexsee/core/style/PaintSheet;->mode:Ljava/lang/String;

    const-string v9, "avoid"

    invoke-virtual {v8, v9}, Ljava/lang/String;->equalsIgnoreCase(Ljava/lang/String;)Z

    move-result v8

    if-eqz v8, :cond_10

    .line 171
    new-instance v8, Landroid/graphics/AvoidXfermode;

    iget-object v9, p0, Lrexsee/core/style/PaintSheet;->op_color:Ljava/lang/String;

    invoke-static {v9}, Lrexsee/core/style/RexseeDrawable;->getIntColor(Ljava/lang/String;)I

    move-result v9

    iget-object v10, p0, Lrexsee/core/style/PaintSheet;->tolerance:Ljava/lang/String;

    invoke-static {v10, v13}, Lrexsee/core/utilities/Utilities;->getInt(Ljava/lang/String;I)I

    move-result v10

    sget-object v11, Landroid/graphics/AvoidXfermode$Mode;->AVOID:Landroid/graphics/AvoidXfermode$Mode;

    invoke-direct {v8, v9, v10, v11}, Landroid/graphics/AvoidXfermode;-><init>(IILandroid/graphics/AvoidXfermode$Mode;)V

    invoke-virtual {v4, v8}, Landroid/graphics/Paint;->setXfermode(Landroid/graphics/Xfermode;)Landroid/graphics/Xfermode;

    .line 180
    :cond_5
    :goto_5
    return-object v4

    .line 140
    .end local v0    # "a":F
    :cond_6
    iget-object v8, p0, Lrexsee/core/style/PaintSheet;->text_align:Ljava/lang/String;

    const-string v9, "center"

    invoke-virtual {v8, v9}, Ljava/lang/String;->equalsIgnoreCase(Ljava/lang/String;)Z

    move-result v8

    if-eqz v8, :cond_7

    .line 141
    sget-object v8, Landroid/graphics/Paint$Align;->CENTER:Landroid/graphics/Paint$Align;

    invoke-virtual {v4, v8}, Landroid/graphics/Paint;->setTextAlign(Landroid/graphics/Paint$Align;)V

    goto/16 :goto_0

    .line 143
    :cond_7
    sget-object v8, Landroid/graphics/Paint$Align;->LEFT:Landroid/graphics/Paint$Align;

    invoke-virtual {v4, v8}, Landroid/graphics/Paint;->setTextAlign(Landroid/graphics/Paint$Align;)V

    goto/16 :goto_0

    .line 147
    :cond_8
    iget-object v8, p0, Lrexsee/core/style/PaintSheet;->text_decoration:Ljava/lang/String;

    const-string v9, "strikethru"

    invoke-virtual {v8, v9}, Ljava/lang/String;->equalsIgnoreCase(Ljava/lang/String;)Z

    move-result v8

    if-nez v8, :cond_9

    iget-object v8, p0, Lrexsee/core/style/PaintSheet;->text_decoration:Ljava/lang/String;

    const-string v9, "strikethrough"

    invoke-virtual {v8, v9}, Ljava/lang/String;->equalsIgnoreCase(Ljava/lang/String;)Z

    move-result v8

    if-eqz v8, :cond_0

    .line 148
    :cond_9
    invoke-virtual {v4, v14}, Landroid/graphics/Paint;->setStrikeThruText(Z)V

    goto/16 :goto_1

    .line 156
    .restart local v0    # "a":F
    :cond_a
    iget-object v8, p0, Lrexsee/core/style/PaintSheet;->format:Ljava/lang/String;

    const-string v9, "fill"

    invoke-virtual {v8, v9}, Ljava/lang/String;->equalsIgnoreCase(Ljava/lang/String;)Z

    move-result v8

    if-eqz v8, :cond_b

    sget-object v8, Landroid/graphics/Paint$Style;->FILL:Landroid/graphics/Paint$Style;

    goto/16 :goto_2

    :cond_b
    sget-object v8, Landroid/graphics/Paint$Style;->FILL_AND_STROKE:Landroid/graphics/Paint$Style;

    goto/16 :goto_2

    .line 164
    .restart local v7    # "strokeWidth":F
    :cond_c
    iget-object v8, p0, Lrexsee/core/style/PaintSheet;->stroke_cap:Ljava/lang/String;

    const-string v9, "square"

    invoke-virtual {v8, v9}, Ljava/lang/String;->equalsIgnoreCase(Ljava/lang/String;)Z

    move-result v8

    if-eqz v8, :cond_d

    sget-object v8, Landroid/graphics/Paint$Cap;->SQUARE:Landroid/graphics/Paint$Cap;

    goto/16 :goto_3

    :cond_d
    sget-object v8, Landroid/graphics/Paint$Cap;->BUTT:Landroid/graphics/Paint$Cap;

    goto/16 :goto_3

    .line 165
    :cond_e
    iget-object v8, p0, Lrexsee/core/style/PaintSheet;->stroke_join:Ljava/lang/String;

    const-string v9, "round"

    invoke-virtual {v8, v9}, Ljava/lang/String;->equalsIgnoreCase(Ljava/lang/String;)Z

    move-result v8

    if-eqz v8, :cond_f

    sget-object v8, Landroid/graphics/Paint$Join;->ROUND:Landroid/graphics/Paint$Join;

    goto/16 :goto_4

    :cond_f
    sget-object v8, Landroid/graphics/Paint$Join;->MITER:Landroid/graphics/Paint$Join;

    goto/16 :goto_4

    .line 172
    .end local v7    # "strokeWidth":F
    :cond_10
    iget-object v8, p0, Lrexsee/core/style/PaintSheet;->mode:Ljava/lang/String;

    const-string v9, "target"

    invoke-virtual {v8, v9}, Ljava/lang/String;->equalsIgnoreCase(Ljava/lang/String;)Z

    move-result v8

    if-eqz v8, :cond_11

    .line 173
    new-instance v8, Landroid/graphics/AvoidXfermode;

    iget-object v9, p0, Lrexsee/core/style/PaintSheet;->op_color:Ljava/lang/String;

    invoke-static {v9}, Lrexsee/core/style/RexseeDrawable;->getIntColor(Ljava/lang/String;)I

    move-result v9

    iget-object v10, p0, Lrexsee/core/style/PaintSheet;->tolerance:Ljava/lang/String;

    invoke-static {v10, v13}, Lrexsee/core/utilities/Utilities;->getInt(Ljava/lang/String;I)I

    move-result v10

    sget-object v11, Landroid/graphics/AvoidXfermode$Mode;->TARGET:Landroid/graphics/AvoidXfermode$Mode;

    invoke-direct {v8, v9, v10, v11}, Landroid/graphics/AvoidXfermode;-><init>(IILandroid/graphics/AvoidXfermode$Mode;)V

    invoke-virtual {v4, v8}, Landroid/graphics/Paint;->setXfermode(Landroid/graphics/Xfermode;)Landroid/graphics/Xfermode;

    goto/16 :goto_5

    .line 174
    :cond_11
    iget-object v8, p0, Lrexsee/core/style/PaintSheet;->mode:Ljava/lang/String;

    const-string v9, "pixelxor"

    invoke-virtual {v8, v9}, Ljava/lang/String;->equalsIgnoreCase(Ljava/lang/String;)Z

    move-result v8

    if-eqz v8, :cond_12

    .line 175
    new-instance v8, Landroid/graphics/PixelXorXfermode;

    iget-object v9, p0, Lrexsee/core/style/PaintSheet;->op_color:Ljava/lang/String;

    invoke-static {v9}, Lrexsee/core/style/RexseeDrawable;->getIntColor(Ljava/lang/String;)I

    move-result v9

    invoke-direct {v8, v9}, Landroid/graphics/PixelXorXfermode;-><init>(I)V

    invoke-virtual {v4, v8}, Landroid/graphics/Paint;->setXfermode(Landroid/graphics/Xfermode;)Landroid/graphics/Xfermode;

    goto/16 :goto_5

    .line 177
    :cond_12
    new-instance v8, Landroid/graphics/PorterDuffXfermode;

    invoke-direct {p0}, Lrexsee/core/style/PaintSheet;->getPorterDuffMode()Landroid/graphics/PorterDuff$Mode;

    move-result-object v9

    invoke-direct {v8, v9}, Landroid/graphics/PorterDuffXfermode;-><init>(Landroid/graphics/PorterDuff$Mode;)V

    invoke-virtual {v4, v8}, Landroid/graphics/Paint;->setXfermode(Landroid/graphics/Xfermode;)Landroid/graphics/Xfermode;

    goto/16 :goto_5
.end method
